package bbb;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;

public class BallInfo {

	private String code;
	private Date date;

	private Integer red1;
	private Integer red2;
	private Integer red3;
	private Integer red4;
	private Integer red5;
	private Integer red6;
	private Integer blue;

	public List<Integer> toRedList(){
		List<Integer> ret = new ArrayList<Integer>();
		ret.add(red1);
		ret.add(red2);
		ret.add(red3);
		ret.add(red4);
		ret.add(red5);
		ret.add(red6);
		Collections.sort(ret);
		return ret;
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Integer getRed1() {
		return red1;
	}

	public void setRed1(Integer red1) {
		this.red1 = red1;
	}

	public Integer getRed2() {
		return red2;
	}

	public void setRed2(Integer red2) {
		this.red2 = red2;
	}

	public Integer getRed3() {
		return red3;
	}

	public void setRed3(Integer red3) {
		this.red3 = red3;
	}

	public Integer getRed4() {
		return red4;
	}

	public void setRed4(Integer red4) {
		this.red4 = red4;
	}

	public Integer getRed5() {
		return red5;
	}

	public void setRed5(Integer red5) {
		this.red5 = red5;
	}

	public Integer getRed6() {
		return red6;
	}

	public void setRed6(Integer red6) {
		this.red6 = red6;
	}

	public Integer getBlue() {
		return blue;
	}

	public void setBlue(Integer blue) {
		this.blue = blue;
	}

	@Override
	public String toString() {
		return " "+code+" "+red1+" "
		+red2+" "+red3+" "+red4+" "+red5+" "+red6+" "+blue+" ";
	}

}
